package com.py.pythink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@TableName("t_userlike")
@NoArgsConstructor
public class UserLike {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private Integer fuid;//被点赞人发送帖子的id(帖子id)
    private Integer flag;
    private Date ctime;


    public UserLike(Integer uid, Integer fuid, Integer flag) {
        this.uid = uid;
        this.fuid = fuid;
        this.flag = flag;
    }
}
